package com.king.constant;

/**
 * 响应状态码
 *
 * @author liukai
 */
public enum ResponseStatus {

    SUCCESS(2000, "成功"),

    REQUEST_VALIDATOR_FAIL(4000, "请求参数校验失败"),

    AUTHENTICATION_FAIL(4001, "用户名或密码错误"),

    METHOD_NOT_ALLOWED(4005, "方法不允许"),

    SERVER_ERROR(5000, "服务器运行出现异常");

    private final int status;

    private final String message;

    ResponseStatus(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }


}
